﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Register Assembly="Winnow.SharepointDesigner, Version=1.0.0.0, Culture=neutral, PublicKeyToken=53328ac4f6868226"
    Namespace="Winnow.SharepointDesigner.Controls" TagPrefix="cc1" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="Winnow.SharepointDesigner.Layouts.Winnow.SharepointDesigner.List"
    DynamicMasterPageFile="~masterurl/minimal.master" %>

<style>
    .mGrid
    {
        width: 100%;
        background-color: #fff;
        margin: 5px 0 10px 0;
        border: solid 1px #525252;
        border-collapse: collapse;
    }
    .mGrid td
    {
        padding: 2px;
        border: solid 1px #c1c1c1;
        color: #717171;
    }
    .mGrid th
    {
        padding: 4px 2px;
        color: #fff;
        background: #424242 url(/_layouts/images/ClaySys.CompanySystem/grd_head.png) repeat-x top;
        border-left: solid 1px #525252;
        font-size: 0.9em;
    }
    .mGrid .alt
    {
        background: #fcfcfc url(/_layouts/images/ClaySys.CompanySystem/grd_alt.png) repeat-x top;
    }
    .mGrid .pgr
    {
        background: #424242 url(/_layouts/images/ClaySys.CompanySystem/grd_pgr.png) repeat-x top;
    }
    .mGrid .pgr table
    {
        margin: 5px 0;
    }
    .mGrid .pgr td
    {
        border-width: 0;
        padding: 0 6px;
        border-left: solid 1px #666;
        font-weight: bold;
        color: #fff;
        line-height: 12px;
    }
    .mGrid .pgr a
    {
        color: #666;
        text-decoration: none;
    }
    .mGrid .pgr a:hover
    {
        color: #000;
        text-decoration: none;
    }
</style>
<script language="javascript" type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"> </script>
<form id="form1" runat="server">
<table width="100%">
    <tr>
        <td style="vertical-align: top">
            <cc1:DisplayLayout runat="server" Title="List Information" Description="Key inforation about this list">
                <table>
                    <tr>
                        <td>
                            List Name
                        </td>
                        <td>
                            <asp:image runat="server" id="img"></asp:image>
                            <asp:label runat="server" id="lblListName"></asp:label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Description
                        </td>
                        <td>
                            <asp:label runat="server" id="lblDescription"></asp:label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            GUID
                        </td>
                        <td>
                            <asp:label runat="server" id="lblID"></asp:label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Base Type
                        </td>
                        <td>
                            <asp:label runat="server" id="lblBaseType"></asp:label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Default View Url
                        </td>
                        <td>
                            <asp:hyperlink target="_blank" runat="server" id="lblDefaultView"></asp:hyperlink>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Add New Item Url
                        </td>
                        <td>
                            <asp:hyperlink target="_blank" runat="server" id="hlkAddNewItem"></asp:hyperlink>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Edit Item Url
                        </td>
                        <td>
                            <asp:label runat="server" id="lblEdit"></asp:label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Mobile Default View Url
                        </td>
                        <td>
                            <asp:hyperlink target="_blank" runat="server" id="lblDefaultMobileView"></asp:hyperlink>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Mobile Add New Item Url
                        </td>
                        <td>
                            <asp:hyperlink target="_blank" runat="server" id="hlkMobileAddNewItem"></asp:hyperlink>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Mobile Edit Item Url
                        </td>
                        <td>
                            <asp:label runat="server" id="lblMobileEdit"></asp:label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Auther
                        </td>
                        <td>
                            <asp:label runat="server" id="lblAuther"></asp:label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Created
                        </td>
                        <td>
                            <asp:label runat="server" id="lblCreatedOn"></asp:label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            No of Items
                        </td>
                        <td>
                            <asp:label runat="server" id="lblItemCount"></asp:label>
                        </td>
                    </tr>
                </table>
            </cc1:DisplayLayout>
            <cc1:DisplayLayout runat="server" Title="Customization" Description="Links to list customization tools">
            </cc1:DisplayLayout>
            <cc1:DisplayLayout runat="server" Title="Settings" Description="General settings for this list">
            </cc1:DisplayLayout>
            <cc1:DisplayLayout runat="server" Title="Content Types" Description="A content type is a reusable collection of coloumns and settings that can apply to your list.">
            </cc1:DisplayLayout>
        </td>
        <td style="vertical-align: top">
            <cc1:DisplayLayout runat="server" Title="Views" Description="">
              <asp:gridview runat="server" id="grdViews"
                    CssClass="mGrid"
                    PagerStyle-CssClass="pgr"
                    AlternatingRowStyle-CssClass="alt"
                    GridLines="None">
                    <Columns>
                        <asp:TemplateField HeaderText="Title">
                            <ItemTemplate>
                                <a target="_blank" href='<%# DataBinder.Eval(Container.DataItem,"ServerRelativeUrl") %>'>
                                <asp:Label  runat="server"  Text='<%# DataBinder.Eval(Container.DataItem,"Title") %>' /> 
                                </a>
                            </ItemTemplate>
                        </asp:TemplateField>
                         <asp:TemplateField HeaderText="Default">
                            <ItemTemplate>
                          <%--  <img src='<%# DataBinder.Eval(Container.DataItem,"ImageUrl") %>' />--%>
                                <asp:Label  runat="server"  Text='<%# DataBinder.Eval(Container.DataItem,"DefaultView") %>' /> 
                            </ItemTemplate>
                        </asp:TemplateField>
                         <asp:TemplateField HeaderText="Type">
                            <ItemTemplate>
                                <asp:Label  runat="server"  Text='<%# DataBinder.Eval(Container.DataItem,"Type") %>' /> 
                            </ItemTemplate>
                        </asp:TemplateField>
                        
                    </Columns>
                    </asp:gridview>
            </cc1:DisplayLayout>
            <cc1:DisplayLayout runat="server" Title="Forms" Description="">
                    <asp:gridview runat="server" id="grdForms"
                    CssClass="mGrid"
                    PagerStyle-CssClass="pgr"
                    AlternatingRowStyle-CssClass="alt"
                    GridLines="None">
                   
                    </asp:gridview>
            </cc1:DisplayLayout>
            <cc1:DisplayLayout runat="server" Title="Workflows" Description="">
            </cc1:DisplayLayout>
            <cc1:DisplayLayout runat="server" Title="Custom Actions" Description="">
            </cc1:DisplayLayout>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <cc1:DisplayLayout runat="server" Title="List Columns" Description="Display all Columns with detailed view.">
                <asp:gridview runat="server" id="grdColumns"
               
    CssClass="mGrid"
    PagerStyle-CssClass="pgr"
    AlternatingRowStyle-CssClass="alt"
         GridLines="None"         
          
                >
        <Columns>
        <asp:TemplateField HeaderText="Title">
             <ItemTemplate>
                  <asp:Label  runat="server"  Text='<%# DataBinder.Eval(Container.DataItem,"Title") %>' /> 
             </ItemTemplate>
             </asp:TemplateField>

           <asp:TemplateField HeaderText="Description">
             <ItemTemplate>
             <asp:Label runat="server" Text='<%#  DataBinder.Eval(Container.DataItem,"TypeShortDescription") %>' /> 
              </ItemTemplate>
             </asp:TemplateField>

              <asp:TemplateField HeaderText="InternalName">
             <ItemTemplate>
             <asp:Label  runat="server"  Text='<%#  DataBinder.Eval(Container.DataItem,"InternalName") %>' /> 
             </ItemTemplate>
             </asp:TemplateField>

              <asp:TemplateField HeaderText="GUID">
             <ItemTemplate>
             <asp:Label  runat="server"  Text='<%#  DataBinder.Eval(Container.DataItem,"ID") %>' /> 
             </ItemTemplate>
             </asp:TemplateField>
              
              <asp:TemplateField HeaderText="Scope">
             <ItemTemplate>
                    <asp:Label  runat="server"  Text='<%#  DataBinder.Eval(Container.DataItem,"Scope") %>' />
             </ItemTemplate>
             </asp:TemplateField>
             </Columns>
        </asp:gridview>
            </cc1:DisplayLayout>
            <%--  <asp:gridview runat="server" id="grdEvents">
        <Columns>
        <asp:TemplateField HeaderText="Title">
             <ItemTemplate>
                  <asp:Label  runat="server"  Text='<%# Eval("Title") %>' /> 
             </ItemTemplate>
             </asp:TemplateField>

             </Columns>
        </asp:gridview>--%>
        </td>
    </tr>
</table>
</form>
